package com.jp.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dept")
public class DeptController {

    @GetMapping("/getDept")
    public String getDept() {
        return "getDept2";
    }

    @GetMapping("/err")
    public String err() {
        int i = 1/0;
        return "err";
    }
    @GetMapping("/flow")
    public String flow() {
        return "flow";
    }
}
